<?php
/**
 * @copyright 2009 - 2011 Bincent.com. All Rights Reserved.
 * @license http://www.apache.org/licenses/LICENSE-2.0
 * @package FitPHP
 * 
 * @author Hongbin Hsu <Hongbin.Hsu@gmail.com> Initial.
 * @version $Id: fitphp.php 1.0 2010-09-18 16:52 hongbin.hsu $
 */

//FitPHP执行时间开启
$FIT_START_TIME = microtime(true);

// FitPHP Version
define('FIT_VERSION',	'2.5');

/*检查定义项目路径,以确定目录*/
if (!defined('APP_PATH'))
{
	exit('ERROR：Must define APP_PATH!');
}

/*检查定义项目调试,默认开启*/
if (!defined('FIT_DEBUG'))
{
	define('FIT_DEBUG', true);
}

/*定义框架绝对路径,以及防止被*/
if (!defined('FIT_PATH'))
{
	define('FIT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
}

require_once(FIT_PATH.'core/application.php');
require_once(FIT_PATH.'core/base.php');
require_once(FIT_PATH.'core/common.php');
require_once(FIT_PATH.'core/controller.php');
require_once(FIT_PATH.'core/loader.php');
require_once(FIT_PATH.'core/model.php');
require_once(FIT_PATH.'core/router.php');

autoload('library/filter', true);